<template>
  <p @click="add"> <button>{{count}}</button></p>
  <p>{{double}}</p>
  <p @click="addNum">{{num}}</p>
</template>

<script>
export default {
    data() {
        return {
            count:0,
            num:2
        }
    },
    methods: {
        add(){
            this.count++
        },
        addNum(){
            this.num++
        }
    },
}
</script>

<style>

</style>